package org.contextsensitivetodo.context.rules;


/**
 * All context rules need to implement this interface
 * 
 * @author juhani
 *
 */
public interface ContextRule {

	/**
	 * 
	 * @return true if the context rule is on 
	 */
	public boolean isOn();
	
	public void doStateUpdate();
	
	public void addContextRuleStateChangeListener(ContextRuleStateChangeListener listener);
	public void removeContextRuleStateChangeListener(ContextRuleStateChangeListener listener);
	
	public String getRuleName();
}
